<?php
/**
 * Created by PhpStorm.
 * User: work
 * Date: 18-8-11
 * Time: 下午9:04
 */

namespace PddWechat\Models\Mall\Service;


use Dai\Framework\Base\BaseSessionInfo;
use PddWechat\Library\PddLibrary;

class RedpackMore
{
    /**
     * @param $basePageInfo
     */
    public function execute($basePageInfo) {
        /** @var BaseSessionInfo $sessionData */
        $sessionData = $basePageInfo->sessionInfo;
        $url = PddLibrary::addRedPackUrl($sessionData->openId, $sessionData->inviteCode);
        header("Location: $url");
        exit;
    }
}